package com.qf.pojo;

import java.util.Date;

/**
 *用户实体 ---前台用户
 */
public class User {
    /**
     *
     uid varchar(32) NOT NULL
     username varchar(20) NULL
     password varchar(32) NULL
     name varchar(20) NULL
     email varchar(30) NULL
     telephone varchar(20) NULL
     birthday date NULL
     sex varchar(10) NULL
     state int(11) NULL
     code varchar(64) NULL
     */
    private String uid ;//用户编号  (UUID工具生成随机字符串)
    private  String username ;//昵称
    private String password  ;//用户密码
    private  String name ; //前台用户的真实姓名
    private String email ; //邮箱
    private String telephone ;//电话号码
    private Date birthday ;//用户出生日期
    private  String sex ; //性别
    private int state ;//用户激活状态: 默认值0,未激活(前台用户不能登录),1表示登录
    private String code ;//用户的激活码 (jdk提供工具:UUID参数随机字符串)




    public User() {
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }


    @Override
    public String toString() {
        return "User{" +
                "uid='" + uid + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", telephone='" + telephone + '\'' +
                ", birthday=" + birthday +
                ", sex='" + sex + '\'' +
                ", state=" + state +
                ", code='" + code + '\'' +
                '}';
    }
}


